﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using CMS.BLL;


public partial class Controls_Common_ctrNavigation : System.Web.UI.UserControl
{
    private int nCurrentLanguage = Support.GetCurrentLanguage(); 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.SetLabel();
        }
    }
    private void SetLabel()
    {
        lnkHome.Text = MultipleLanguage.HOME[nCurrentLanguage - 1];
        int nCountry = ConvertData.ConvertToInt(Request.QueryString["cid"]);
        if (nCountry ==0)
            nCountry=1;
        switch (nCountry )
        {
            case 1:
                lblCountry.Text = "Vietnam";
                lnkHome.NavigateUrl = "~/Default.aspx?cid=1";
                break;
            case 2:
                lblCountry.Text = "Laos";
                lnkHome.NavigateUrl = "~/Default.aspx?cid=2";
                break;
            case 3:
                lblCountry.Text = "Cambodia";
                lnkHome.NavigateUrl = "~/Default.aspx?cid=3";
                break;
        }
       
    }

}